The Dreamweaver JavaScript API > File manipulation functions > dom.setLinkHref()

 

dom.setLinkTarget()

Availability

Dreamweaver 3.0

Description

Sets the target of the link that surrounds the current selection. This function is equivalent to looping through the parents and grandparents of the current node until a link is found, and then calling setAttribute('TARGET') on the link.

Arguments

{linkTarget}

linkTarget is a string representing a frame or window name, or one of the reserved targets ("_self", "_parent", "_top", or "_blank"). If the argument is omitted, the Set Target dialog box appears.

Returns

Nothing.

Enabler

None.